package com.lhl.api.config;

import com.lhl.api.conver.EnumConvertFactory;
import io.swagger.annotations.Api;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

/**
 * @className: com.lhl.api.config.WebConfig
 * @description: TODO 类描述
 * @author: king
 * @date: 2020-11-17
 **/
@Api(tags = "WebConfig", produces = "")
@Configuration
public class WebConfig extends WebMvcConfigurationSupport {

    @Override
    public void addFormatters(FormatterRegistry registry) {
        registry.addConverterFactory(new EnumConvertFactory());
    }
}
